@extends('master')

@section('content')
<div class="photographers-index">
    <div class="container">

       <h3>摄影师</h3>
       <p>有你更精彩～</p>
       @foreach($photographers as $key => $photographer)
        <div class="row">
            <div class="col-sm-5">
                <div class="user-info">
                    <a href="/photographer/{{$photographer->username}}" target="_blank">
                        <img src="/img/photographer-01.png" alt="">
                    </a>
                    <div class="details">
                      <a href="/photographer/{{$photographer->username}}" class="name" target="_blank">{{$photographer->firstname . ' ' . $photographer->lastname}}</a>
                      <div class="stats">
                        照片数量：{{ $photographer->pictureCount }}
                      </div> <!-- .stats -->
                      <div class="actions">
                      </div>
                    </div> <!-- .details -->
                  </div>
            </div>
            <div class="col-sm-7">
                <div class="picture-list">
                   <ul>
                    @foreach($photographer->pictures as $picture)
                        <li>
                            <a href="javascript:;" data-remote="/picture/info/{{ $picture->id }}" data-toggle="modal" data-target="#photo-modal">
                                <img src="{{'/uploads/picture/' . $picture->thumb }}" alt="">
                            </a>
                        </li>

                    @endforeach
                   </ul>
                </div>
            </div>
        </div>


       @endforeach

    </div>
</div>
@stop




